package com.rowling.factory;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)   //元注解，作用在类上
@Retention(RetentionPolicy.CLASS)
public @interface Factory {

    //Id
    String id();

    //类型
    Class type();
}
